Skip to content

Surface swallowed errors across pipeline and UI - #13

Open
devin-ai-integration[bot] wants to merge 6 commits into
mainfrom
devin/1786296072-error-handling
Open

Surface swallowed errors across pipeline and UI#13
devin-ai-integration[bot] wants to merge 6 commits into
mainfrom
devin/1786296072-error-handling

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • surfaces previously swallowed errors across data loading, scraping, scheduling, valuation, model fallbacks, and Streamlit pages
  • narrows expected fallbacks to documented exception families and logs the affected path plus exception
  • makes bid-update and restricted-dataset failures propagate instead of reporting partial success
  • preserves the deliberately broad remote data-upload fallback because publication is optional UI behavior, while logging the full failure context

Rebuild on current main

  • rebuilt on deployed main commit a32840e
  • reconciled overlap with PR16 review hardening and PR12 dashboard authentication
  • published as a non-force merge commit; remote tree exactly matches tested rebuild 2aeda35

Validation

  • focused error/data-loader tests: 23 passed
  • full suite with an external workspace temp directory: 970 passed, 1 expected xfail
  • Ruff: passed
  • compileall: passed
  • readiness: passed
  • governance: 408/408 observed tags covered, 0 errors (13 existing warnings)
  • project-memory normal, diff, and staged checks: passed
  • staged commit hygiene: passed

A full-suite run with pytest temp files inside the repository exposes the existing curve-version relative-vs-absolute path assertion; unchanged current main reproduces it. Moving pytest temp files outside the repository gives the clean result above and keeps that unrelated baseline issue out of this PR.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@fallen-pc fallen-pc self-assigned this Aug 9, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06bc155384

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tests/test_error_visibility.py Outdated

monkeypatch.setattr(update_master, "build_restricted_datasets", _boom)
monkeypatch.setattr(update_master, "_load_dataframe", lambda *_a, **_k: pd.DataFrame())
monkeypatch.setattr(update_master, "_write_master_outputs", lambda *_a, **_k: None, raising=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Isolate the update_master test from runtime CSVs

This monkeypatch creates _write_master_outputs, but update_master_database() never calls that helper; it writes to SOLD_FILE, REFERRED_FILE, and ACTIVE_FILE directly via _merge_preserving_history()/_atomic_write() before build_restricted_datasets() is reached. In a normal pytest run against the tracked CSV_data baseline, this test can rewrite the real runtime CSVs while only intending to assert the raised RuntimeError; redirect the file constants or write helpers to tmp_path instead.

AGENTS.md reference: AGENTS.md:L101-L102

Useful? React with 👍 / 👎.

ewanferrie and others added 5 commits August 9, 2026 17:26
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replays PR13 on deployed current main and preserves the UI-safe remote-upload fallback with visible error logging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants